package com.zh.test.bean;

import java.util.ArrayList;
import java.util.Iterator;

class Test2{
    public static void main(String[] args) {
       /* System.out.println("nowday ====> " + Weekday.FRI);
        System.out.println("nowday int ====> " + Weekday.FRI.ordinal());
        System.out.println("nextday ====> " + Weekday.getNextDay(Weekday.FRI)); // 输出 SUN*/


      /* Test2 t1 = Test2.me();
       Test2 t2 = Test2.me();
       if(t1 == t2){
           System.out.print("1");
       }*/
      Test2.me().show("A","B");

      Test2.me().show2("A","B",new Person2());

      Test2.me().show3(new Person(),new Person3<>(),new Person3<String>(),new Person3<String>("zhang")  );
    }

    private Test2 (){}
    private static Test2 me = new Test2();
    public static  Test2 me(){
        return  me;
    }
    public void show (String... S){

        for(String s : S){
            System.out.print(s);
        }
    }
    public void show2 (Object... S){

        for (Object o :S){
            System.out.print(o);
        }
    }
    public void show3 (Person... S){

        for (Object o :S){
            System.out.print(o);
        }
    }

}
